<template>
	<view class="p20">
		<u-navbar :isBack="false" :background="{background: '#0000'}" :border-bottom="false" />
		<view class="h60"></view>
		<view class="radius40 bg-fff p30 loginBoxShadow">
			<view class="flex mb30">
				<image :src="$config.shop_logo||''" class="h92 w92 radius20" mode=""></image>
				<view class="fs36 fw-600 ml24">修改密码</view>
			</view>
			<u-form :borderBottom="false">
				<u-form-item>
					<view class="p10 pl30 pr30 w-max bg-f8f radius20">
						<u-input v-model="form.mobile" maxlength="11" placeholder="请输入手机号码"></u-input>
					</view>
				</u-form-item>
				<u-form-item>
					<view class="p10 pl30 pr30 w-max bg-f8f radius20 flex row-between">
						<u-input v-model="form.code" class="flex1" placeholder="请输入短信验证码"></u-input>
						<tips :mobile="form.mobile" type="forget"></tips>
					</view>
				</u-form-item>

				<u-form-item>
					<view class="p10 pl30 pr30 w-max bg-f8f radius20">
						<u-input v-model="form.login_pwd" type="password" placeholder="请输入登录密码"></u-input>
					</view>
				</u-form-item>
				<u-form-item>
					<view class="p10 pl30 pr30 w-max bg-f8f radius20">
						<u-input v-model="form.login_pwd2" type="password" placeholder="请确认登录密码"></u-input>
					</view>
				</u-form-item>
			</u-form>
			<u-button type="warning" class="mt50 radius20" ripple @click="submit">确认</u-button>
		</view>
	</view>

</template>

<script>
	export default {
		data() {
			return {
				form: {
					mobile: '',
					code: '',
					login_pwd: '',
					login_pwd2: '',
				}
			};
		},
		methods: {
			submit() {
				this.$request('/member/login/forgetPwd', this.form).then(res => {
					this.$msg(res.msg)
					this.$navBack(1,1000)
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		min-height: 100%;
		background: linear-gradient(145deg, rgba(253, 52, 52, 0.07) 0%, rgba(255, 255, 255, 0.1200) 35%, rgba(0, 212, 235, 0.10) 100%);
	}
</style>
